package com.dfbz.demo;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01_static用法_01 {
    public static void main(String[] args) {
        Student s1 = new Student(202209213, "小灰", 20);
        s1.show();

        Student s2 = new Student(202209214, "小红", 18);
        s2.show();

        Student s3 = new Student(202209215, "小蓝", 22);
        s3.show();

        Student s4 = new Student(202208213, "小军", 17);
        s4.show();


        // 被static修饰的成员可以直接使用，类名调用
        System.out.println(Student.numberId);

        System.out.println(s1.numberId);;
    }
}
